<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
if(!=''){
	alert('${updateInfo}');
}
</script>
</head>

<body>
${updateInfo}
<form action="queryUser.do" method="post">
姓名:<input type="text" name="userName">
<input type="submit" value="查询">
</form>
<table width="80%" border="1">
<tr>
<th>编号</th>
<th>姓名</th>
<th>性别</th>
<th>功能区</th>
</tr>
<c:forEach items="${list}" var="user">
<tr>
<td>${user.userId}</td>
<td>${user.userName}</td>
<td>${user.userSex}</td>
<td><a href="queryUserById.do?userId=${user.userId}">修改</a></td>
</tr>
</c:forEach>
</table>
</body>
</html>